
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class AreaBO : Csla.BusinessBase<AreaBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in AreaBO
			//AuthorizationRules.AllowRead(AreaDetailBOListProperty, "AreaBOReadGroup");
			//AuthorizationRules.AllowRead(AreaIDProperty, "AreaBOReadGroup");
			//AuthorizationRules.AllowRead(AreaNameProperty, "AreaBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "AreaBOReadGroup");

			//AuthorizationRules.AllowWrite(AreaNameProperty, "AreaBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "AreaBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of AreaBO
			//AuthorizationRules.AllowCreate(typeof(AreaBO), "AreaBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(AreaBO), "AreaBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(AreaBO), "AreaBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.Area data)
		{
			//CHANGE_ME! //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
